using System;
using Crusades.Helpers;

namespace Crusades.MapView{
	public class MapManipulatorController{
		private readonly IMap map;

		private int zoom;

		public MapManipulatorController(IMap map){
			this.map = map;
		}

		public void MapManipulator_MouseWheel(int delta){
			double factor = (.05*30)/60;
			zoom += (delta * factor).ToInt();
			map.Zoom = zoom;
		}
	}
}